#include "Texture.h"
#include "Util.h"

namespace TestDX
{

Texture::Texture(void) :
	_pTexture(NULL)
{
}


Texture::~Texture(void)
{
}

bool Texture::Init(ID3D11Device *device, WCHAR * filename)
{
	HR(D3DX11CreateShaderResourceViewFromFile(
		device, filename, NULL, NULL, &_pTexture, NULL));

	return true;
}

void Texture::Shutdown()
{
	RELEASE_COM(_pTexture);
}

};